<template>
    <div class="my-card">
        <img :src="item.pic" alt="">
        <div class="detail">
            <div class="first">
                <p>{{item.name}}</p>
                <span>{{item.characteristic}}</span>
            </div>
            <div class="second">
                <section>
                    <span class="count red">￥{{item.minPrice}}</span><span class="min-price">底价</span>
                </section>
                <section>
                    <span class="count">￥{{item.originalPrice}}</span><span>原价</span>
                </section>
                <section>
                    <span class="count">{{item.stores}}件</span><span>限量</span>
                </section>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: '',
    props: {
        item: {
            type: Object
        }
    },
    data() { 
        return {

        }
    },
    created() {

    },
    methods:{

    },
}
</script>

<style scoped lang="scss">
.my-card {
    display: flex;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #E9E9E9;
    img {
        width: 250px;
        height: 250px;
        margin-right: 20px;
        border-radius: 8px;
    }
    .detail {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-basis: calc(100% - 250px);
        .first {
            font-size: 28px;
            p {
                margin-bottom: 30px;
            }
            span {
                font-size: 24px;
                color: #b2b2b2;
            }
        }
    }
    .second {
        font-size: 26px;
        display: flex;
        justify-content: space-around;
        section {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #b2b2b2;
            .count {
                margin-bottom: 24px;
            }
            .red {
                color: #d00000;
                font-weight: bold;
            }
            .min-price {
                color: #333;
            }
        }
    }
}
</style>